package wxdb.parse.absyn;
import wxdb.symbol.Symbol;
public class BinOper extends Exp{
	public static int AVG=0, COUNT=1, MIN=2, MAX=3, SUM=4, 
						AND=5, OR=6, LT=7, EQ=8, GT=9, LE=10, GE=11, NEQ=12, IN=13, TIMES=14;
	public int option;
	public BinOper(int p, int o){
		pos = p;
		option = o;
	}
	
	public boolean isNEQ(){
		return (option==NEQ);
	}
	public boolean isLT(){
		return (option==LT);
	}
	public boolean isEQ(){
		return (option==EQ);
	}
	public boolean isGT(){
		return (option==GT);
	}
	public boolean isLE(){
		return (option==LE);
	}
	public boolean isGE(){
		return (option==GE);
	}
	
	public boolean isAnd(){
		return (option==5);
	}
	
	public boolean isOr(){
		return (option==6);
	}
	
	public String toString(){
		if(option==GE) return "GE";
		else if(option==LE) return "LE";
		else if(option==GT) return "GT";
		else if(option==LT) return "LT";
		else if(option==EQ) return "EQ";
		else return null;	
	}
}
